int luckcode(int n)
{
    while (n > 0)
    {
        int tmp1 = n % 10;
        int tmp2 = n % 100;
        if (tmp1 == 4 || tmp2 == 62)
            return 0;
        n /= 10;
    }
    return 1;
}